package com.example.his.api.mis.controller.form.user;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class UpdatePasswordForm {
  @NotBlank(message = "密码不能为空")
  @Pattern(regexp = "^[a-zA-Z0-9]{6,20}$", message = "密码格式错误")
  private String password;
  
  @NotBlank(message = "新密码不能为空")
  @Pattern(regexp = "^[a-zA-Z0-9]{6,20}$", message = "新密码格式错误")
  private String newPassword;
}
